package com.mineplatform.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.springframework.stereotype.Repository;

import com.mineplatform.domain.M_Province;
import org.hibernate.criterion.Order;

@Repository
public class M_ProvinceDao extends M_BaseDao {

	public List<M_Province> findAll() {

		DetachedCriteria crit = DetachedCriteria.forClass(M_Province.class);
		crit.addOrder(Order.asc("ProvinceSort"));
		List<M_Province> list = (List<M_Province>) this.getHibernateTemplate().findByCriteria(crit);
		return list;
	}

}
